package com.sakiko.aspects_01;

import org.springframework.stereotype.Component;

/**
 * description: aop 纯 xml;  ioc/di用注解
 */

@Component // <aop:aspect ref="logAspect" order="10"> 标签引用本类
public class LogAspect {

    public void before() {
        System.out.println("老弟来啦...");
        System.out.println("时间: " + System.currentTimeMillis());
    }

    public void after() {
        System.out.println("老弟白白...");
        System.out.println("时间: " + System.currentTimeMillis());
    }
}
